<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css语法</title>
    <style>
     h1{
            color: red;
            text-align: center;
        }
        #text{
            color: coral;
            text-align: center;
            font-size: 200px;
        }
        .class{
            color: darkorchid;
            text-align: right;
            font-family: 'Times New Roman', Times, serif;
            font-size: 100px;
        }
    </style>
</head>
<body>
    <!-- 这是一个注释 -->
    <h1>今天很开心
    </h1>
    <p id="text">id选择器</p>
    <p class="class">class选择器</p>
</body>
</html>